# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

# Define all the files and modules to include
a = Analysis(['main.py'],
             pathex=['c:/Users/Administrator/Desktop/PDFV1.0'],
             binaries=[],
             datas=[('config.py', '.'), ('src', 'src')],
             hiddenimports=['tkinter.scrolledtext', 'logging.handlers', 'logging.config', 'io', 'contextlib'],
             hookspath=[],
             runtime_hooks=[],
             excludes=[
                 '原始项目资料文件夹',
                 '待插入的PDF文件夹', 
                 '内部签字页',
                 '已插入签字页',
                 '未插入签字页',
                 '日志',
                 '测试',
                 '已插入签字页',
                 '未插入签字页',
                 '内部签字页',
                 '原始项目资料文件夹',
                 '待插入的PDF文件夹'
             ],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher,
             noarchive=False)

# Create the PYZ archive
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

# Create the executable
exe = EXE(pyz,
          a.scripts,
          a.binaries,
          a.zipfiles,
          a.datas,
          [],
          name='PDF处理器',
          debug=False,
          bootloader_ignore_signals=False,
          strip=False,
          upx=True,
          upx_exclude=[],
          runtime_tmpdir=None,
          console=False,  # This is equivalent to --windowed
          disable_windowed_traceback=False,
          target_arch=None,
          codesign_identity=None,
          entitlements_file=None)